<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class m_obat_analisa extends CI_Model{
	public function get_all(){
		$sql = 'SELECT * FROM obat';
		$query = $this->db->query($sql);
		if ($query->num_rows() > 0) {
			$result = $query->result_array();
			$query->free_result();
		} else {
			$result = array();
		}
		return $result;
	}
}

/* End of file m_obat_analisa.php */
/* Location: ./application/models/m_obat_analisa.php */